home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / Japan / Panasonic- / funcity / tokyo / e / cool.dcr / 00048_±ýÞÿ—.ls < prev    next >
Encoding:
Text File  |  2017-09-21  |  4.2 KB  |  157 lines

  1. on moveice
  2.   global gcre, gice, gicet, gicett, ghit
  3.   if gice = 0 then
  4.     if gcre > 0 then
  5.       if rollOver(3) then
  6.         if the mouseDown then
  7.           set gice to 1
  8.           set gicet to the ticks
  9.           set gicett to 3 * 60
  10.           set ghit to 0
  11.           set gcre to gcre - 1
  12.           set the puppet of sprite 48 to 1
  13.           set the locV of sprite 48 to the mouseV - 7
  14.           set the locH of sprite 48 to the mouseH - 10
  15.           cursor(200)
  16.         else
  17.           cursor([31, 32])
  18.         end if
  19.       else
  20.         cursor([35, 36])
  21.       end if
  22.       dspcream(gcre)
  23.     end if
  24.   else
  25.     set the locV of sprite 48 to the mouseV - 7
  26.     set the locH of sprite 48 to the mouseH - 10
  27.     if the mouseDown then
  28.       if the ticks > (gicet + (4 * 60)) then
  29.         set gice to 0
  30.         set the puppet of sprite 48 to 0
  31.         puppetSound("NEAT1")
  32.         cursor([31, 32])
  33.       else
  34.         if the ticks > (gicet + gicett) then
  35.           set gicett to gicett + 10
  36.           if the puppet of sprite 48 = 1 then
  37.             set the puppet of sprite 48 to 0
  38.             cursor([33, 34])
  39.           else
  40.             set the puppet of sprite 48 to 1
  41.             cursor(200)
  42.           end if
  43.         end if
  44.       end if
  45.     end if
  46.   end if
  47. end
  48.  
  49. on checkice
  50.   global gten, gcre, gnin, gcha, gice, ghit, gicep, gicec
  51.   if gice = 1 then
  52.     if the mouseDown then
  53.       if rollOver(9) then
  54.         if ghit = 0 then
  55.           set i to the mouseV
  56.           if (i > (the top of sprite 9 + 30)) and (i < (the top of sprite 9 + 60)) then
  57.             if random(5) > 2 then
  58.               set ghit to 1
  59.               set the castNum of sprite 9 to the number of cast "SONIC-5"
  60.             else
  61.               set ghit to -1
  62.             end if
  63.           end if
  64.         else
  65.           if ghit = 1 then
  66.             set the castNum of sprite 9 to the number of cast "SONIC-5"
  67.           end if
  68.         end if
  69.       else
  70.         set ghit to 0
  71.         set the castNum of sprite 9 to gcha
  72.       end if
  73.     else
  74.       if ghit = 1 then
  75.         puppetSound("EAT1")
  76.         set the castNum of sprite 9 to the number of cast "SONIC-4"
  77.         dspten(1)
  78.         set the puppet of sprite 48 to 0
  79.         cursor([31, 32])
  80.         if gicep = 0 then
  81.           set gicep to the ticks + (10 * 60)
  82.           set gicec to 1
  83.         else
  84.           if gicep > the ticks then
  85.             set gicep to the ticks + (10 * 60)
  86.             set gicec to gicec + 1
  87.           end if
  88.         end if
  89.         if gnin >= 9 then
  90.           go(#next)
  91.         end if
  92.       else
  93.         puppetSound("NEAT1")
  94.         set the puppet of sprite 48 to 0
  95.         cursor([31, 32])
  96.       end if
  97.       set gice to 0
  98.     end if
  99.   else
  100.     if gcre = 0 then
  101.       go(#next)
  102.     end if
  103.   end if
  104.   if gicep < the ticks then
  105.     set gicec to 0
  106.     set gicep to 0
  107.   end if
  108. end
  109.  
  110. on dspcream cr
  111.   if cr > 28 then
  112.     set the visible of sprite 3 to 0
  113.     set the visible of sprite 4 to 0
  114.     set the visible of sprite 5 to 0
  115.     set the visible of sprite 6 to 0
  116.     set the visible of sprite 7 to 0
  117.   else
  118.     if cr > 18 then
  119.       set the visible of sprite 3 to 0
  120.       set the visible of sprite 4 to 1
  121.       set the visible of sprite 5 to 0
  122.       set the visible of sprite 6 to 0
  123.       set the visible of sprite 7 to 0
  124.     else
  125.       if cr > 10 then
  126.         set the visible of sprite 3 to 0
  127.         set the visible of sprite 4 to 0
  128.         set the visible of sprite 5 to 1
  129.         set the visible of sprite 6 to 0
  130.         set the visible of sprite 7 to 0
  131.       else
  132.         if cr > 3 then
  133.           set the visible of sprite 3 to 1
  134.           set the visible of sprite 4 to 0
  135.           set the visible of sprite 5 to 0
  136.           set the visible of sprite 6 to 1
  137.           set the visible of sprite 7 to 0
  138.         else
  139.           if cr > 0 then
  140.             set the visible of sprite 3 to 1
  141.             set the visible of sprite 4 to 0
  142.             set the visible of sprite 5 to 0
  143.             set the visible of sprite 6 to 0
  144.             set the visible of sprite 7 to 1
  145.           else
  146.             set the visible of sprite 3 to 1
  147.             set the visible of sprite 4 to 0
  148.             set the visible of sprite 5 to 0
  149.             set the visible of sprite 6 to 0
  150.             set the visible of sprite 7 to 0
  151.           end if
  152.         end if
  153.       end if
  154.     end if
  155.   end if
  156. end
  157.